-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
systematic failure when writing a dataframe of 1 column of integer. this should solve issue Issue #3628 #3636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systematic failure when writing a dataframe of 1 column of integer. this should solve issue Issue #3628 #3636
Conversation
… sqlite ( Issue pandas-dev#3628 ) A push of a dataframe of one column of integers fail ungraciously, because sqlite doesn't recognize well the data type. This should solve the problem by converting back to normal types
can you add a test for this, and a release notes mention? thxs |
fyi..if this is ONLY breaking on py3....you can do: (or even better is the make the adjustment in the code and have a test that covers all py) |
if gives a bogus result in python 3, and fails on python 2.7, as noticed cpcloud, so it's a fix for both |
checks if the push of a dataframe of one column to sql (sqlite) works
pls add the issue at the top of the test eg GH???? as a comment a nice way of testing things like this is to test a round trip df = create df |
Hello @jreback Yes : #3644 is exactly #3628 after reading the CONTRIBUTING and git documentation. CONTRIBUTING is speaking of "rebase", but in my newcomer case I found "git reset" to be more fit. Maybe would it be helpfull for your next newcomer to include a few more lines/links on "how to transform a working_patch in a working_PR" ? Maybe there is a nice résumé-on-a-page somewhere already, but it's hard to find it as a newcomer. the procedure I figured out for my particular case.....0 - remember next time it's better to not touch your MASTER branch of the forked project, work only on branches then, to rewrite history of your "my_working_patch" patch from current pandas master commit ... 5 - do your PR when |
i guess there isnt a link in contributing to here: http://pandas.pydata.org/developers.html I'll show u how to rebase in a bit |
Here is my usual workflow: Start in master & make sure master it up 2 date
Create a new branch that tracks master (and switch to it)
Edit/test and commit (repeat this as needed)
To update to master
then fix issues, add, and edit/patch some more (like above) To rebase/e.g. squash commits together
use This replaces the commits on the branch iwth your new set ( rather than just appending)
|
closing in favor of #3644 |
This procedure looks much much simpler, I'll apply it now. I already used the first part to get my 'master' back like the official one git checkout master \o// , I feel much much better now. Thank you very much for the procedure ! |
...lite ( Issue #3628 )
A push of a dataframe of one column of integers fail ungraciously, because sqlite doesn't recognize well the data type.
This should solve the problem by converting back to normal types